package com.mdc.mansion.dataaccess.modules.restaurant.dao;

import java.util.List;


import org.apache.ibatis.annotations.Param;

import com.mdc.mansion.dataaccess.common.persistence.CrudDao;
import com.mdc.mansion.dataaccess.common.persistence.annotation.MyBatisDao;
import com.mdc.mansion.dataaccess.modules.restaurant.entity.RestaurantTable;
import com.mdc.mansion.dataaccess.modules.restaurant.entity.mo.RestaurantTableMO;

/**
 * 餐厅餐桌信息dao接口
 * @author mingdongc
 * @version 2018-01-01
 */
@MyBatisDao
public interface RestaurantTableDao extends CrudDao<RestaurantTable>{

	List<RestaurantTable> getFreeTableList(RestaurantTable restaurantTable);

    List<RestaurantTableMO> selectRestaurantTableWithStatus(@Param("restaurantId")String restaurantId,@Param("restaurantTableId")String restaurantTableId);

    List<RestaurantTable> selectByParam(RestaurantTable restaurantTable);

	List<RestaurantTableMO> selectTableWithId(@Param("restaurantId")String restaurantId, @Param("restaurantTableId")String restaurantTableId);
}
